package com.zsrt.java.day20161226.xww.demo3.demo5;

import java.util.Scanner;

public class Switch {

	public static void demo5(String score){
		switch (score) {
		case "A":System.out.println("优秀");break;
		case "B":System.out.println("良好");break;
		case "C":System.out.println("一般");break;
		default:System.out.println("有问题");	break;
		}
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入成绩：");
        String score=sc.next();
        demo5(score);
        sc.close();
	}
}
